package com.kaiwukj.android.ufamily.mvp.http.entity.event;

import androidx.annotation.IntDef;

public class OrderEvent {

    public static final int UPDATE = 1;
    public static final int DELETE = 10;
    public static final int INVALID = 11;//订单失效（一般情况为支付超时）

    @Event
    private int eventCode;
    private int eventId;
    private Object eventExt;


    @IntDef({DELETE, INVALID, UPDATE})
    public @interface Event {
    }


    public OrderEvent() {
    }

    public OrderEvent(int eventCode, int eventId) {
        this.eventCode = eventCode;
        this.eventId = eventId;
    }

    public OrderEvent(int eventCode, int eventId, Object eventExt) {
        this.eventCode = eventCode;
        this.eventId = eventId;
        this.eventExt = eventExt;
    }

    public int getEventCode() {
        return eventCode;
    }

    public void setEventCode(int eventCode) {
        this.eventCode = eventCode;
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public Object getEventExt() {
        return eventExt;
    }

    public void setEventExt(Object eventExt) {
        this.eventExt = eventExt;
    }
}
